package org.speed.mes.base.domain.bo;

import org.speed.mes.base.domain.BsProcess;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 工序管理业务对象 bs_process
 *
 * @author speed-mes
 * @date 2024-06-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BsProcess.class, reverseConvertGenerate = false)
public class BsProcessBo extends BaseEntity {

    /**
     * 工序id
     */
    @NotNull(message = "工序id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 工序编码
     */
    @NotBlank(message = "工序编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 工序名称
     */
    @NotBlank(message = "工序名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 是否启用 0停用 1启用
     */
    private String status;

    /**
     * 备注
     */
    private String remark;


}
